#include "engine.h"
#include "internal_types.h"
#include <set>
using namespace std;

namespace HW
{
static set<TPivot> lPivots;

TPivot CreatePivot(TEntity parent)
{
	GameObject::_i_Pivot newPivot;
	
	_i_World* currWorld = (_i_World*)(CurrentWorld());
	currWorld->pivot.push_back ( newPivot );

	TPivot bpPiv = (BP)(&currWorld->pivot.back());
	lPivots.insert ( bpPiv );
	return bpPiv;
}
}